package com.xinghou.platform.dao.main;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.xinghou.platform.model.main.UserGeo;

public interface UserGeoDAO {

	/**根据id获得用户地理位置信息
	 * @param geoId
	 * @return
	 * @throws DataAccessException
	 */
	public UserGeo getUserGeoById(Integer geoId) throws DataAccessException;
	
	/**
	 * 修改用户地理位置信息
	 * @param usergeo
	 * @return
	 * @throws DataAccessException
	 */
	 
	public int updateUserGeo(UserGeo usergeo) throws DataAccessException;
	
	/**
	 * 保存用户地理位置信息
	 * @param usergeo
	 * @throws DataAccessException
	 */
	public int saveUserGeo(UserGeo usergeo) throws DataAccessException;

	public List<UserGeo> getUserGeosById(int geoId, int pageSize) throws DataAccessException;
}
